Optimal. Leaf size=86 \[ -\frac {4 c \tan (e+f x)}{15 f \left (a^3 \sec (e+f x)+a^3\right )}+\frac {11 c \tan (e+f x)}{15 a f (a \sec (e+f x)+a)^2}-\frac {2 c \tan (e+f x)}{5 f (a \sec (e+f x)+a)^3} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.16, antiderivative size = 86, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 32, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.094, Rules used = {4008, 4000, 3794} \[ -\frac {4 c \tan (e+f x)}{15 f \left (a^3 \sec (e+f x)+a^3\right )}+\frac {11 c \tan (e+f x)}{15 a f (a \sec (e+f x)+a)^2}-\frac {2 c \tan (e+f x)}{5 f (a \sec (e+f x)+a)^3} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3794
Rule 4000
Rule 4008
Rubi steps
\begin {align*} \int \frac {\sec ^2(e+f x) (c-c \sec (e+f x))}{(a+a \sec (e+f x))^3} \, dx &=-\frac {2 c \tan (e+f x)}{5 f (a+a \sec (e+f x))^3}-\frac {\int \frac {\sec (e+f x) (-6 a c+5 a c \sec (e+f x))}{(a+a \sec (e+f x))^2} \, dx}{5 a^2}\\ &=-\frac {2 c \tan (e+f x)}{5 f (a+a \sec (e+f x))^3}+\frac {11 c \tan (e+f x)}{15 a f (a+a \sec (e+f x))^2}-\frac {(4 c) \int \frac {\sec (e+f x)}{a+a \sec (e+f x)} \, dx}{15 a^2}\\ &=-\frac {2 c \tan (e+f x)}{5 f (a+a \sec (e+f x))^3}+\frac {11 c \tan (e+f x)}{15 a f (a+a \sec (e+f x))^2}-\frac {4 c \tan (e+f x)}{15 f \left (a^3+a^3 \sec (e+f x)\right )}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.17, size = 43, normalized size = 0.50 \[ -\frac {c (\cos (e+f x)+4) \tan ^3\left (\frac {1}{2} (e+f x)\right ) \sec ^2\left (\frac {1}{2} (e+f x)\right )}{30 a^3 f} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.40, size = 78, normalized size = 0.91 \[ \frac {{\left (c \cos \left (f x + e\right )^{2} + 3 \, c \cos \left (f x + e\right ) - 4 \, c\right )} \sin \left (f x + e\right )}{15 \, {\left (a^{3} f \cos \left (f x + e\right )^{3} + 3 \, a^{3} f \cos \left (f x + e\right )^{2} + 3 \, a^{3} f \cos \left (f x + e\right ) + a^{3} f\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.82, size = 39, normalized size = 0.45 \[ -\frac {3 \, c \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{5} + 5 \, c \tan \left (\frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{3}}{30 \, a^{3} f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.76, size = 37, normalized size = 0.43 \[ \frac {c \left (-\frac {\left (\tan ^{5}\left (\frac {e}{2}+\frac {f x}{2}\right )\right )}{5}-\frac {\left (\tan ^{3}\left (\frac {e}{2}+\frac {f x}{2}\right )\right )}{3}\right )}{2 f \,a^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.51, size = 115, normalized size = 1.34 \[ -\frac {\frac {c {\left (\frac {15 \, \sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1} + \frac {10 \, \sin \left (f x + e\right )^{3}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{3}} + \frac {3 \, \sin \left (f x + e\right )^{5}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{5}}\right )}}{a^{3}} - \frac {3 \, c {\left (\frac {5 \, \sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1} - \frac {\sin \left (f x + e\right )^{5}}{{\left (\cos \left (f x + e\right ) + 1\right )}^{5}}\right )}}{a^{3}}}{60 \, f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.70, size = 35, normalized size = 0.41 \[ -\frac {c\,{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^3\,\left (3\,{\mathrm {tan}\left (\frac {e}{2}+\frac {f\,x}{2}\right )}^2+5\right )}{30\,a^3\,f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ - \frac {c \left (\int \left (- \frac {\sec ^{2}{\left (e + f x \right )}}{\sec ^{3}{\left (e + f x \right )} + 3 \sec ^{2}{\left (e + f x \right )} + 3 \sec {\left (e + f x \right )} + 1}\right )\, dx + \int \frac {\sec ^{3}{\left (e + f x \right )}}{\sec ^{3}{\left (e + f x \right )} + 3 \sec ^{2}{\left (e + f x \right )} + 3 \sec {\left (e + f x \right )} + 1}\, dx\right )}{a^{3}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________